package com.base.utils;

import javax.servlet.http.HttpServletRequest;

public class WebUtils  {
	
		public static String getWebAppRoot(HttpServletRequest request){
			String path = request.getContextPath();
			return request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
		}
		
		public static String getWebFrameRoot(HttpServletRequest request){
			String path = request.getContextPath();
			return request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+"frame/";
		}
}
